package com.cxl.autocode.data;

import com.summer.core.autocode.AutoCodePath;
import com.summer.core.entity.BaseBean;
import com.summer.core.entity.STable;

/**
 * 代码自动生成 相关路径包
 * dao,service,action 
 * @author Administrator
 *
 */
public abstract class SmrFrame implements AutoCodePath{
	
	private STable bean;
	
	//包路径
	private String servicePackage;
	private String actionPackage;
	private String daoPackage;
	private String daoImplPackage;
	private String serviceImplPackage;
	
	//模块路径
	public String dao="/template/Dao.java.ftl";
	public String daoImpl="/template/DaoImpl.java.ftl";
	public String service="/template/Service.java.ftl";
	public String serviceImpl="/template/ServiceImpl.java.ftl";
	public String action="/template/Action.java.ftl";
	
	//类名称
	private String daoName;
	private String daoImplName;
	private String actionName;
	private String serviceName;
	private String serviceImplName;
	


	public SmrFrame(STable bean) {
		setBean(bean);
		transformPath();
		//setCreateDate(new Date());
	}

	
	
	public STable getBean() {
		return bean;
	}



	public void setBean(STable bean) {
		this.bean = bean;
	}



	public String getServicePackage() {
		return servicePackage;
	}

	public void setServicePackage(String servicePackage) {
		this.servicePackage = servicePackage;
	}

	public String getActionPackage() {
		return actionPackage;
	}

	public void setActionPackage(String actionPackage) {
		this.actionPackage = actionPackage;
	}

	public String getDaoPackage() {
		return daoPackage;
	}

	public void setDaoPackage(String daoPackage) {
		this.daoPackage = daoPackage;
	}
	
	public String getDaoName() {
		return daoName;
	}

	public void setDaoName(String daoName) {
		this.daoName = daoName;
	}

	public String getDaoImplName() {
		return daoImplName;
	}

	public void setDaoImplName(String daoImplName) {
		this.daoImplName = daoImplName;
	}

	public String getActionName() {
		return actionName;
	}

	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public String getServiceImplName() {
		return serviceImplName;
	}

	public void setServiceImplName(String serviceImplName) {
		this.serviceImplName = serviceImplName;
	}

	
	public String getDaoImplPackage() {
		return daoImplPackage;
	}

	public void setDaoImplPackage(String daoImplPackage) {
		this.daoImplPackage = daoImplPackage;
	}

	public String getServiceImplPackage() {
		return serviceImplPackage;
	}

	public void setServiceImplPackage(String serviceImplPackage) {
		this.serviceImplPackage = serviceImplPackage;
	}
	

}
